import Router from 'vue-router'
import Vue from 'vue'

import Home from '@/views/Home/index.vue'
import Detail from '@/views/Detail/index.vue'

Vue.use(Router)

const base = '/xiaomi'

export default new Router({
  isAdd: false,
  routes: [
    {
      path: base + '/',
      component: Home
    },
    {
      path: base + '/detail',
      component: Detail
    },
  ],
})